package wifiunion.com.notice.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import wifiunion.com.notice.R;


/**
 * Created by Administrator on 2016/11/23.
 */

public class NoticeDeviceViewHolder extends RecyclerView.ViewHolder {
    public TextView mDevicenumtv;
    public TextView mDevicemodeltv;
    public TextView mDevicelistaddresstv;





    /**
     * @param itemView
     * @param itemType 0 列表视图
     *                 1 网格视图
     */
    public NoticeDeviceViewHolder(View itemView, int itemType) {
        super(itemView);
        if (itemType == 0) {
            mDevicenumtv = (TextView) itemView.findViewById(R.id.notice_device_num_tv);
            mDevicemodeltv = (TextView) itemView.findViewById(R.id.notice_device_model_tv);
            mDevicelistaddresstv = (TextView) itemView.findViewById(R.id.notice_device_address_tv);


        }
    }


    public NoticeDeviceViewHolder(View itemView) {
        super(itemView);

    }

    @Deprecated
    public final int getIPosition() {
        return getPosition() - 2;
    }

    public final int getILayoutPosition() {
        return getLayoutPosition() - 2;
    }

    public final int getIAdapterPosition() {
        return getAdapterPosition() - 2;
    }

    public final int getIOldPosition() {
        return getOldPosition() - 2;
    }

    public final long getIItemId() {
        return getItemId();
    }

    public final int getIItemViewType() {
        return getItemViewType();
    }
}
